<?php

function editor($field, $value) {
    $setting = unserialize($this->fields[$field]['setting']);
    $enablesaveimage = $setting['enablesaveimage'];
    if (isset($_POST['spider_img']))
        $enablesaveimage = 0;
    if ($enablesaveimage) {
        $site_setting = unserialize($this->site_config['setting']);
        $watermark_enable = intval($site_setting['watermark_enable']);
    }
    return $value;
}

?>